package com.bootdo.system.service;

import java.util.List;

import com.smart.constants.RoleSign;
import org.springframework.stereotype.Service;

import com.bootdo.system.domain.RoleDO;

@Service
public interface RoleService {

	RoleDO get(Long id);

	List<RoleDO> list();

	int save(RoleDO role);

	int update(RoleDO role);

	int remove(Long id);

	List<RoleDO> list(Long userId);

	int batchremove(Long[] ids);

    List<RoleDO> selectByRoleSign(String[] toArray);

	/**
	 * 根据rolesign获取角色信息
	 * @param refuellers
	 * @return
	 */
	List<RoleDO> getByRoleSign(String refuellers);

	List<RoleDO> listByUserId(Long userId);
}
